<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTopicsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('topics', function(Blueprint $table) {
            $table->increments('id');
            $table->integer('creator');
            $table->integer('reply_num');
            $table->string('content', 65536);
            $table->string('title', 128);
            $table->boolean('delete');
            $table->boolean('reviewed');
            $table->timestamps();
        });
        DB::update('ALTER TABLE topics AUTO_INCREMENT = 11235');
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('topics');
    }
}
